package threaddemo5;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 19:09
 */
//获取当前线程名
public class Testdemo {
    public static void main(String[] args) {
        String name=Thread.currentThread().getName();
        System.out.println(name);
    }
}
